
package com.hlkj.pay.vo.order.req;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.hlkj.pay.vo.BaseReq;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author HlpayTeam
 * @date 2024/10/09 11:37
 */
@Data
public class OrderCommonParamReq extends BaseReq {

    @Schema(description = "应用APPID")
    @NotEmpty(message = "应用APPID 不能为空")
    private String appId;

    @Schema(description = "时间戳")
    @NotEmpty(message = "时间戳 不能为空")
    private String timestamp;

    @Schema(description = "签名")
    @NotEmpty(message = "签名 不能为空")
    private String sign;

    @Schema(description = "请求参数")
    @NotNull(message = "请求参数 不能为空")
    @Valid
    private String bizContent;

    @Schema(description = "请求id")
    @NotEmpty(message = "请求id 不能为空")
    private String requestId;

    @Schema(description = "子商户编码")
    private String subSn;

    @Schema(description = "签名方式 目前仅支持RSA2与MD5，建议使用RSA2 1:RSA2")
    @NotEmpty(message = "签名方式 不能为空")
    private String signType;

    @Schema(description = "版本号")
    private String version;
}
